package operator;

public class P7_theOp {
    public static void main(String[] args) {

        // ??
        int ccc = 0;
        ccc ++;
        // ?????
        int a = 10;
        int b = 10;
        int c = 10;
        int d = 10;

        System.out.println(a+b);
        System.out.println(a/b);
        System.out.println(a*b);


        long aa = 12313131234123123L;
        int bb = 123;
        short cc = 10;
        byte dd = 8;

        /* ???? ???? ??????????? ?? */
        System.out.println(aa+bb+cc+dd);  // Long
        System.out.println(bb+cc+dd);  // Int
        System.out.println(cc+dd);  // Int


        // ???
        double pow = Math.pow(3, 2);
        System.out.println(pow);  // 3**2 = 9


        // ????  ?&&  ?||  ??
        int k = 1;
        boolean thek = (k>1)&&(k++>1);
        System.out.println(k);
        System.out.println(thek);  // ???? ?????&&??????? ???


        /*
         * ???
         * a & b  ?
         * a | b  ?
         * a ^ b  ?  ?0?1
         * ~a     ?  ??
         */

        /*
         *  ?? <<  ?????*2
         *  ?? >>  ?????/2
         */

        /*
         * ????
         * a+=  a-= a/=
         */


        /*
         * ??????
         *
         */
        int the_a = 10;
        int the_b = 20;
        System.out.println(the_a+the_b+"");  // 30
        System.out.println(""+the_a+the_b);  // ?????? 1020




    }
}
